<?php
namespace app\index\model;



use think\Model;

class Member extends Model
{
    protected $name = 'member_message';

    protected $auto = ['ctime','utime','password','ip'];

    protected function setPasswordAttr($val){
        return md5($val);
    }
    protected function setIpAttr(){
        return request()->ip();
    }
    protected function setCtimeAttr(){
        return time();
    }
    protected function setUtimeAttr(){
        return time();
    }



}